package com.heima.model.comment.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class CommentRepayLikeDTO {
    /**
     * 回复id
     */
    @NotNull(message = "评论ID为空")
    private String commentReppayId;
    /**
     * 0：点赞
     * 1：取消点赞
     */
//    @Length(min = 1,max = 140,message = "评论内容过长或内容不能为空")
     @Range(min = 0,max = 1,message = "操作有误")
    private Short operation;
}